home *** CD-ROM | disk | FTP | other *** search
/ Invisible Universe / Invisible Universe (1995)(Voyager)[Mac-PC].iso / mac / UNIVERSE / SHARED.DIR / 01002_Script_sbx < prev    next >
Text File  |  1995-11-21  |  1KB  |  57 lines

  1. -- standard quickDraw button behavior
  2. --ancestor to standard button trios [sbt]
  3. --property myChannel, myScript
  4.  
  5. --on birth me, sp,sc
  6. --  set myChannel to integer(sp)
  7. --  set myScript to sc
  8. --  return me
  9. --end
  10.  
  11. --change appearance
  12. on sbnorm theLine
  13.   set myChannel = integer(item 4 of theLine)
  14.   
  15.   puppetSprite myChannel,TRUE
  16.   set the ink of sprite myChannel to 39
  17.   updateStage
  18.   puppetSprite myChannel, false
  19. end 
  20.  
  21. on sbrollo myChannel, dummy
  22.   --put ">>>my rollover cast 1002  sb: chan=" & myChannel 
  23.   
  24.   puppetSprite myChannel,TRUE
  25.   set the ink of sprite myChannel to 38
  26.   updateStage
  27.   -- puppetSprite myChannel, false
  28. end
  29.  
  30. on sbpress theLine
  31.   set myChannel = integer(item 4 of theLine)
  32.   puppetSprite myChannel,TRUE
  33.   set the ink of sprite myChannel to 34
  34.   updateStage
  35.   puppetSprite myChannel, false
  36. end
  37.  
  38. on sbdoScript theLine
  39.   set command = item 7 of theLine
  40.   do command
  41. end  
  42.  
  43. on sbc me
  44.   return myChannel
  45. end
  46.  
  47. on sbr me
  48.   return myRollover
  49. end
  50.  
  51. on sbp me
  52.   return myPressed
  53. end
  54.  
  55. on sbn me
  56.   return myNormal
  57. end